package pl.edu.pb.wi.cookbook.form;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

public class RegisterForm {
    @NotEmpty(message = "Wpisz login.")
    @Size(min = 5, max = 15, message = "Minimum 5 oraz maksimum 15 znaków.")
    private String login;
    @NotEmpty(message = "Wpisz e-mail.")
    @Email(message = "Niepoprawny e-mail.")
    private String email;
    @NotEmpty(message = "Wpisz hasło.")
    @Size(min = 5, message = "Minimum 5 znaków.")
    private String password;
    @NotEmpty(message = "Wpisz hasło.")
    @Size(min = 5, message = "Minimum 5 znaków.")
    private String password2;

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword2() {
        return password2;
    }

    public void setPassword2(String password2) {
        this.password2 = password2;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

}
